<template>
	<view>
		 <easy-scroll ref="easyScroll" :list="list"></easy-scroll>
		<view-tabbar :current="2"></view-tabbar>
	</view>

</template>

<script>
	var app = getApp();
	import Tabbar from '@/pagesA/tabber/tabber.vue'
	import easyScroll from '@/components/easy-scroll/easy-scroll.vue'
	export default {
		components: {
			'view-tabbar': Tabbar,
			easyScroll
		},
		data() {
			return {
				list:[]
			}
		},
		onShow() {
			this.getGoodsTypeAll()
		},
		onLoad: function() {
			
		},
		onReady() {
		
		},
		methods: {
			getGoodsTypeAll() {
				uni.showLoading({
					title: '加载中'
				});
				app.globalData.util.request({
					url: "entry/wxapp/Api",
					data: {
						m: "monai_market",
						r: "goods.index.all"
					},
					success: res => {
						this.list = res.data.data
						this.$refs.easyScroll.init()
						uni.hideLoading();
					},
					fail: res => {
						uni.hideLoading();
					}
				});
			}
		}
	}
</script>

<style >

</style>
